v6. Exercise 11 - replaced chomp