added hw3 for cs161