Implemented parseClasses. Passing unit tests!