a first venture into ruby and coffeescript