Library tutorial: extra sample code