Topology of 3-manifolds and a class of groups