Add rules for error cases
Meealy has feed() instead of run()
Change add_rules to add_transition
get_rules -> get_mealy, it returns a mealy machine scheme