FSM BASED WEB CALCULATOR