Did some tidying and created the classes for the DFA