I added a factorization example to the example directory