implemented for triangle.rb for about_triangle_project.rb
triangle.rb complete for about_triangle_project.rb & about_triangle_project_2.rb