Updated code style. braces on the same line for control statements.