https://medium.com/@monocosmo77/recent-updates-on-research-in-finite-state-machines-part5-dbe05cb1360f