Error AddForce is not a member of UnityEngine.RigidBody.

I was seeing a tutorial to start learning unity.
I seas the last part of it was all OK but afrlter putting
This script it shows a error

The code at the link compiles fine for me.

For future posts, please past your code into the question, select your code, and use the 101/010 button to format.