Consider the function defined by the equation:
$$g(x) = x^2 - 2x + 1$$
What is the value of $$g(3)$$?