We study the GMGHS spacetime to analyze anisotropic cosmology model which represents homogeneous but anisotropically expanding(contracting) cosmology. In this paper we investigate the solution of GMGHS spacetime in form of doubly warped products possessing warping functions and find the Ricci curvature associated with three phases in the evolution of the universe.