sample code for cs 4330