working on assignment 2 - parser partially working