Parse class defs