parser update 2

Started the solve method, added a new method isNumber not in uml to
determine if token is a number or not.