https://instrumentationtools.com/topic/finite-state-machine/
Finite-state Machine - Principles of Digital Computing