Refactored triangle_facts file based on comments

Updated the triangle_facts.rb based on Blake's comments.