added Triangle class and headet