Exercise36 from 'Learn ruby the hard way'