Understanding if statements, loops, and switch cases.