A class of homogeneous cosmological models