completed RoR assignement attempt 1