correct the factors function. add problem 12.