Cannot find name 'AccelerationData'

I have created a sample app using the exact same code shown in the Device motion documentation:

When trying to compile I get the cannot find name 'AccelerationData'. What should I do to fix this ?

I was just missing the import for AccelerationData…