Improved basic example.