Determining the quadratic function whose graph is given.

Graphic is a parabola going upwards.

Vertex: -3,2

Y-Intercept: 0,4

I've tried using the following formula as the book explained, but I am not getting the right answer for some odd reason.

f(x) = a(x-h)^2+k