Did homework 4