Created separate method to create subtypes.