http://developer.apple.com/iphone/library/samplecode/AccelerometerGraph/index.html