numeral fsa

implemented fsa