Work on homework 3