example code cleanup

removed an unmatched bracket and cleaned up the formatting a bit.