implemented more of the Parser object