Changed factorial() to be an instance method on Integer.
Removed old implemtation of factors().