Cleaned up the example so that the error is contained