Implemented triangle.py