Converted things to a coffee script class