First you have to put the proper output data structure. It’s best to start your program with:
And then the desired changes will be made by the program you have made. So the above code line is just to make the right structure for the Output. Try this and I hope you will have no problem running your simulation.