title: How to instantiate properly
body: <p>I've been working on this for three nights and have pretty much lost my weekend, so I would appreciate your help.</p>
  
  <p>I'm being told that I'm not instantiating - I'm not 100% sure of how that works, I have read online but would like to see an example that has to do with my particular code.  </p>
  
  <p>In the app delegate I have this:</p>
  
  <pre><code>var myDataSource: Array&lt;Dictionary&lt;String,Any&gt;&gt;!
  </code></pre>
  
  <p>Then, on my first screen I want to capture the username to myDataSource (my array of dictionary's).  I attempted this with:</p>
  
  <pre><code>class UserInfoViewController: UIViewController {
      @IBOutlet weak var firstName: UITextField!
      var userName: String?
  
      @IBAction func submitName(_ sender: UITextField) {
          userName = firstName.text
          if userName != nil {
              let saveName: [String: Int] = ["userName!": 0]
              myDataSource.append(saveName)
              print(firstName)
          }
      }
  </code></pre>
  
  <p>I have knowledge about unwrapping variables, however I think this has to do with instantiation, please tell me if I'm wrong. </p>