Proximity Sensor Inquiry

can anyone help me on having an exercise/examples in proximity sensor using arduino? its a big help for my project study. Thanks in advance :)

http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor