init logic
connecting events
monitoring state attribute
updating example