1) Wrote method to find number of complex activities on the canvas and then number of optional activities out of those complex activities.
2) wrote method to add child to the complex activity (optional/parallel) in this case optional activity
3) method to remove child from specific optional activity
4) method to remove acivity from canvas only to show some change in the comparison between ddm and canvas so that it will redesign the canvas view.