working on adding all factorizations for problem 3. Getting an additional factor at the end.