Updated sample code to be more legible.