fsm: New package (WIP)