Sample code used in CSCE 156 at the University of Nebraska-Lincoln