IGroup group = new Group(); Track track = new Track("Track 1"); group.AddTrack(track);
List tracks = new List(); tracks.Add(new Track("Track 1")); tracks.Add(new Track("Track 2")); IGroup group = new Group(tracks);This example creates a new `List` of `Track` objects. Two new tracks are added to the list and then that list is passed to the constructor of a new `IGroup` object. The group now contains both "Track 1" and "Track 2". The package library used for this example is not specified as it could be any library that implements the IGroup interface.