Factory Pattern Vs Builder Pattern Code