worked on while and input statements