Implementing the triangulation strategy

When we have two or more examples, then we can generalize code by using the triangulation strategy.