modifying event handling example to create DOM stuff too