fuzzy automata basic implementation