nested if statements and while statements work.