added code for the other concrete factory