adding the frame of triangle.rb