add closing brackets to example code