Solution to Chapter 1 problems