added method parsing to the parser, and a test class