added Triangle class