Added drawTriangle() method