Add a Mixin generator

This PR adds a Mixin generator. A test has been added to test this new feature. All tests pass.