Merge pull request #42 from catshirt/v2/base-class

Add base class with extends method.
Merge branch 'version-2' into v2/new-midi