PL hw4 completed