finish chapter7 programmingMaster