Model design and switch to coffee script