What to do if RigidBody.AddForce doesen't exist in my Asset library?

I just began using Unity 5 about a week ago and I am already experiencing problems. I watched the tutorial video on the rolling ball game and got to the part where it uses RigidBody.AddForce(Vector3);. After saving the script that was given onto my Unity project, I ended up with this error:

Assets/Script/PlayerController.cs(12,27): error CS0120: An object reference is required to access non-static member `UnityEngine.Rigidbody.AddForce(UnityEngine.Vector3, UnityEngine.ForceMode)’

I am not sure what the problem is with my program. I have already tried reinstalling Unity 5 and there was no fix to the error. I would like to know why the RigidBody.AddForce does not exist in my Asset library. Thank You.

Rigidbody is a type. You need to get the component or if you’re coming from another version you should have upgraded.

Either way, on line 12 you need to get the component like so:

GetComponent<Rigidbody>().AddForce(new Vector3(0, 0, 0));

You have another error in which the AddForce method is taking a struct called Vector3. It needs to take a REAL Vector3 and not just the type as i indicated above. This may be the variable movement, you decide.