Completes Chpt 5 exercises