Complete chapter2 exercises