Triangle implemented