factory pattern diagram

factory pattern diagram