Added Simple Factory Pattern and its test