Maybe not from how you have it set up here, but it may still be possible to avoid explicit looping and object creation code like this. Or not. If not, disregard.