Finished Logical and Started Ternary

Finished Logical and Started Ternary