Additional methods for the Integer class in Ruby