Excellent, though there's a minor error in the final case; try p=q=3.