Work done on homework 7