Third commit: changed logic in while statement