added and finished
added ternary