Added print_output function. Worked on calc_triangle function.
commiting minor changes before pushing