Exercise for Introduction to Programming with Ruby