Triangle structure added. Not fully functional.