Update  code add lab5-part2 test code. fixed a few bugs added a hook file