Pergunta de entrevista da empresa Newforma

Refactor code to use the Factory pattern