added methods to parse class