title: Batch Class Add contact to Account
body: <p>I have created 20 records with the 'name=SampleAccountOne'.  I am trying to create a batch class that will add a given contact to the 20 records.  Stuck with syntax and where to go.  Any help in the right direction is greatly appreciated.</p>
  
  <pre><code>global class UpdateProjectNameBatch implementsDatabase.Batchable&lt;sObject&gt; {
    List&lt;Contact&gt; conList = new conList&lt;Contact&gt;();
    String query = 'Select Id,Name FROM Account WHERE Name = \'SampleAccountOne\''
  
    global Database.QueryLocator start(Database.BatchableContext bc){
      return Database.getQueryLocator(query);
    }
  
    global void execute(Database.BatchableContext bc,List&lt;sObject&gt; batch){
      for(Contact c : conList){
          batch.c = 'New Contact Name';
      }
    }
  
    global void finish(){
  
    }
  }
  </code></pre>