PL hw2 completed