a simple use of the ternary operator