add exercise trinary