Ruby homework assignment #2