The graph of the quadratic function $g$ is obtained from the graph of $f(x)=x^{2}$ by shifting it horizontally 4 units to the left, then vertically stretching it by a factor of $3,$ and then shifting vertically 2 units upward. What is the rule of the function $g$ ? What is the vertex of its graph?