excercises 3.11 and 3.12