Add some naive factorization helpers ahead of problem 3
Add problem 3 example to tests