modification to the script to create 1000 sets of trees