Factory Method and Prototype homework