Finish chapter5 exercises