adding an example where we try to handle the drain event