assignment 1 from cs193p