Homework 8 for phys2200