source: wrote Triangle class which needs to be tested