Improved complete example.