Small style nitpick: please put the closing braces on the following line, at the same indentation level as the opening `if` or `else if`.