Working on state Input