Let $g(t,z)$ be a continuous function defined for $a \leq t \leq b$ and $z$ in a domain $D$, and suppose that $g(t,z)$ is a harmonic function of $z$ for each fixed $t$. Show that
$$G(z) = \int_{a}^{b} g(t,z)dt$$ is harmonic on $D$
I know I have to show this satisfies the Mean Value Property. The MVP I am given though is $$A(r) = \int_{0}^{2\pi} h(z_0 + re^{i\theta})\frac{d\theta}{2\pi}$$ which is said to be the average value of $h(z)$. This $h(z)$ is single valued, and I have the integral from $0$ to $2\pi$. Due to that, I am not sure how to show this applies to our case. Any help is appreciated!