xCode/Swift user input from textfield : I'm trying to create a class Course with properties such as setting a var to a string/int of user input from a textField. How would I implement this in swift? I was thinking it would be something along the lines of

`class Course { 
let x = self.textFieldname.text! 
}`

But I wind up with an error saying "Instance member can not be used on type ViewController.

I'm a noob to iOS and swift so any help is greatly appreciated.