move shape models to coffeescript