ternarie created to display the answer