Four applications of the Residue Theorem