script to simulate data using method from A-clustering