made function to generate data with the real labels