hw7 of computational physics