Also, the else should be on the same line as the }.