automata and mechanical toys book pdf