Refactoring

PostsRepository now takes a hash of attributes that are created by Post

renamed variables for increased clarity