Creating objects is a very basic task. Although this seems like a simple problem, it can be improved by using patterns like builder and factory.