created custom event model