Example code was a mess