Refactored for style

Solution to leveluprails triangle_facts exercise. @bwthomas