how to create an event program