Redefined triangular? pentagonal? and hexagonal? to be instance methods on Integer.