parse classes and years