Added triangle solution