made events and attribute updates, and corresponding example