simple gets.chomp exercise