adding random event class