adding an ApplicationEvents example.