Moved the code portion which tests the triangle class to a separate file in the spirit of single responsibility