https://medium.com/@monocosmo77/recent-updates-on-research-in-finite-state-machines-part1-9f588f4b673e