A novel approach to data generation in generative model