finished the chapter three excercises