Updated user model and added microposts class