Use coffeescript class syntax instead of extend pattern.