Completed printFactors