making a bit of example code compile - closing braces

More help for those that copy and those that paste.