A grab bag of sample code