Using ternary operator