added variables to the Event class.