Factory method and Builder Pattern

Tried some code in Factory method and Builder Pattern. Code is
incomplete and lacks comment.