add solution to exercise 1.30-1.33