implement the functionality of mixin; adds a functions to the specified object;