Improved g-feature example.