functional mixin applied to constructor.prototype