ex11 - written our own version of chomp