implemented more of the Parser c lass