Please mind the coding guidelines here regarding the brace.
The rest seems to be working great!