added triangle object function