Adding event object and events data structure saving events to memory