Problem 6 [CoffeeScript]