Class Project While loop for adding to arrays