Fundamental Groups of 3-Manifolds which are Extensions