solved exercises 1.9 - 1.11