adding EventService class