Fixed the Example code