Triangle Class modified.