worked on factoring, problem with invalid input -> valid input then
returning 0.