fixes 29
Merge pull request #30 from wcandillon/29

Fix class creation