Newforma Interview Question

Refactor code to use the Factory pattern