Moved left curly braces to the ends of lines of code