Adding boolean for quit case, do-while loop, and switch