Moved Event model to separate file