Added Binary and Ternary operations