new class for triangle