Added a parse method in the parser