Example 9 added | Displaying an error message and a default message