finished about_triangle_project_2 with hints from stackoverflow