Finished section 7.6 -needs testing