the graph f(x)=cos x

Which gives the graph of
g(x)=-2cos[3(x+(pi/3))]-5

write the equation of g(x) in terms of f(x).

Is the question basicly asking for me to do g(f(x))?

If f(x) = cos x

g(x) = 2*f[3(x + (pi/3)] -5