Finished parts 1-4 of hw4