Measuring the shape of the Universe