Exercise45 from Learn Ruby The Hard Way