working on triangulation example