wrote algorithm to populate dynamically created collection of ChannelSamples