Rewrite the following quadratic function in vertex form.
y = -x^2 + 6x + 5
y = -x^2 + 6x + 5