Added general triangle template