Solutions up to exercise 4.4