Ternary

finished logical started Ternary