Finish PPL hw6 coding part