Modified simple example to show messages