Should probably refactor event to a class first, so match can be a subclass of event
Should probably refactor event to a class first, so match can be a subclass of event