fixed an error with the scope `:event`
Added Generator
First working version