Homework from Stanford's Automata class