Added demo for the Factory method pattern in effective java.