creating a mixin using a function and prototypes