refactored to make the code more readable.

added a Mixin to mixin methods of another object.