Finish 6.31 of residues chapter