Created a while loop; added a new task