If f(x) = √(x + 3) and g(x) = x^2 +1 be two real functions, then find fog and gof.