hw6 part4 payments