Program parsing method added

Made start on the parse methods