Example 1 - triangle