Add generator example in the README