solved exercises 4.4