updated example

cleaned up the example and made it easier to read