Complete chapter3 exercises