done triangle.rb