adding triangle example