this require should be at the top of the file, so:

```ruby
require 'ostruct'

class EventsContro....
```