STUDYING DISTANT GALAXIES