assignment1 for Rails class