Modify placement of closing bracket for function definition