example, and making events work