Finished making changes to the file triangle.rb