Parse class with def