Measuring distances in the universe