Using nested if statements.