problem 6, coffeescript