infrastructure and data for ch6 exercise 3
completed exercise 3 in ch6