solutions to Practice #4.pdf