code for cs260 asmt02 CCSF