change Factory Method example