Homework 1 for CS193p