adding methods to module template