Updated if exercise to include else clauses