Program to calculate triangle types with Ruby OO.