Add generator example.