First iteration of trinary