add some test code to display a triangle