Initial solution to problem 1-22