Editing some code in the AP8 TP2 and Prog2