Demo of Factory Design Pattern