Animating a charcter

i am trying to just animate the walk and idle animation
using UnityEngine;
using System.Collections;

public class animation : MonoBehaviour
{
    void Update()
    {
		//between them when the player wants to move
		
		if (Mathf.Abs(Input.GetAxis("Vertical")) > 0.1)
			animation.CrossFade("Run");
		else
			animation.CrossFade("Idle");
	}
}  it wont let me load it
  1. Don’t name your script “animation”.
  2. Make sure the game object that this script is attached to has an Animation component.
  3. Make sure the Animation component has “Run” and “Idle” animations (spelled exactly).
  4. Select the game object in the Hierarchy. Open the Animation View. Make sure you can preview the animations.