refactor

changed the program to use a WHILE statement for the number input and
added a recurring total