standford-cs142, project2, problem6