Finite State Machines and Lessons on Control