added example for data generator