costruct a dfa directly using the subset construction in the exam