cs162 sample code