Mapping the cosmos with Cepheid stars