Write the quadratic function in vertex form.
y = x^2 - 6x + 7
y = x^2 - 6x + 7