Fix for issue #18

I had to commit twice because I initialized the classes variable wrongly.