Added the code for the EventManager to the repository