Assignment 2 Lexical Analysis Solution