RoR class homework 1