Added and implemented processEvent to model