How a telescope works