worked on assignment2 DFA's