hw2 for phc 6194