add notes on anonymous classes, + code examples