added triangleSide() method