Lens in the eye
contains a soft, flexible lens.
When you look at something up close, the muscles inside your eye flex and change the shape of the lens. This changes the focus of your eye to near. When you look up into the distance, the muscle relax, and the lens goes back to its original shape and focal point.