adding while loop exercise