Added Math Calculator implementation of FSM. With state - number.