problem 1 in coffeescript