Solution to Ruby Quiz #2