changed programme order to take operator first and used NormalInput function