More work on section 6.24 in residues chapter