finished ch8 task C
finished ch8 task C