Texture2D declaring

How would you declare the icon variable from an asset in the script below?

/* Button Content examples */

var icon : Texture2D;

function OnGUI () {
    if (GUI.Button (Rect (10,10, 100, 50), icon)) {
        print ("you clicked the icon");
    }

    if (GUI.Button (Rect (10,70, 100, 20), "This is text")) {
        print ("you clicked the text button");
    }
}

/* Button Content examples */

var icon : Texture2D;

function Start ()
{
    // Texture named MyButtonTexture must be in your /Assets/Resources/ directory
    icon = Resources.Load("MyButtonTexture");
}

function OnGUI () {
    if (GUI.Button (Rect (10,10, 100, 50), icon)) {
        print ("you clicked the icon");
    }

    if (GUI.Button (Rect (10,70, 100, 20), "This is text")) {
        print ("you clicked the text button");
    }
}