Implemented the code till parsing

Works OK