Factorization program

With no output bug