finishing triangle.rb