Completed if,else, ternary