hw2 of PL course