returning factors
problem 3 solved