Cs271 Assignment 6