Writing the ProfileComponent from scratch