Fix for issue #18 (fixed the intialization of 'classes' variable)