initial switch to coffeescript classes