Homework 6 for phys2200