changed examples, added listener methods