VERY new to programming, but, all GUI bits gone?

I’m trying to begin GUI programming. Using this:

function OnGUI () {
	if (GUI.Button (Rect (10,10,150,100), "I am a button")) {
		print ("You clicked the button!");
	}
}

results in Assets/Scripts/GUI.js(2,17): BCE0019: 'Button' is not a member of 'GUI'. I tried a similar script (crosshairs) from FPS Tutorial 1, and got a similar error (DrawTexture is not a member of GUI). What is going on?

You named your script “GUI”, which makes Unity confused between your script class name and the “real” GUI class.

–Eric

Lesson learned, important one too. Thanks.