collection of example code from various sources