Implemented first part of the parser