Algorithms for Runtime Generation of Homogeneous Classes of Objects