random bits of example code