Fixed a typo in the previously entered code. Missing { } after if clauses.