Sample program on Constructor Design Pattern