Added triangle class.