Changed the ordering in the 'if' statement in Steps 3-4