Forgot to add the file
Update example to correctly use the struct like event