Exact spherically-symmetric inhomogeneous model with n perfect fluids