Added Event Model
Fix code