class member methods must be declared in class.prototype