Updated the demo code to pass