f/22.0
shutter speed: 1/5
ISO: 400
f/8.0
shutter speed: 1/40
ISO: 400
f/5.6
shutter speed: 1/60
ISO: 400
As you can see from the pictures as the f/ increased so did the depth of field. In other words the background of the picture became more into focus. It does this by allowing more light to go inside. However there is a trade off for more light.
If you look at the picture with the highest aperture, the picture is a bit blurry. Since the lens is allowing more light to come through the shutter speed is longer. So it becomes hard to stand still and keep the picture in focus.