Added a print to the main class checking the output of the triangle type method