Added the Sum Factory. added more tests.