fix class inheritace

(closes #91)