Kind of messy but now we can finally print the factors as in the wiki page