Basically, what you have is right- although you should "suspect" that the pole at z= 7 is of order 3, not 7. I suspect that was a typo! A function, f(z) has "a pole of order n at z= z0" if and only if (z- z0)nf(z) has a non-zero limit as z goes to z0 and that is exactly what you have shown.