adding methods to Model