adds class and priority properties to the Event object