assign methods to prototype, not to 'this' directly