Doing a problem from the textbook