Adding sample code from Dr. Soule