Using namedtuple for event object