Implemented class-based optimization.
Merge branch 'master' of github.com:gsamm/mk8