Class based parsing.