created Triangle class