How the eye works