Used the factory to add the values of the three subclasses to 6 labels.