Use composition instead of multiple inheritance.
Closes #25. Closes #7