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