Updated sample data creation function.