binding model & methods to the class