Here is a video walking you through the creation of an Ambient Occlusion study.
The original artwork on the left is by the fantastic J.B. Monge.

AO-study-example