Triangle class updated