ternary for book