Triangle3 exercise