How do you rig a cobblestone maker on Minecraft?

You need a bucket of water and a bucket of lava: Then dig out a hole like this:

the x's, 1's, and 2's being air. Then place water in hole 2 and lava in hole
-1xx2-- 1, and wait for the water to flow.
--x-----