problem 4, coffeescript