https://www.dailydishnews.org.uk/post/your-system-is-not-a-state-machine-q4d0m8