title: How to :insert an entire function into a group (sceneGroup)
body: <p>I know how to put individual variables into a group but if I were to need a function in the group (so that when I go to make a scene I can insert that entire function into that <code>sceneGroup</code> instead of entering each variable in individually) how would I insert that?</p>
  
  <p>Code:</p>
  
  <pre><code>function scene:create(event) 
      local sceneGroup = self.view
  end
  
  function scene:show(event)
      local sceneGroup = self.view
      local phase = event.phase
  
      if (phase == "will") then
       sceneGroup:insert(HomePage()) --- this is what I have tried
  
      elseif (phase == "did") then
  
      end
  end
  
  
  scene:addEventListener("create", scene)
  scene:addEventListener("show", scene)
  scene:addEventListener("hide", scene)
  scene:addEventListener("destroy", scene)
  
  return scene
  </code></pre>
  
  <p>scene1.lua:140: ERROR: table expected. If this is a function call, you might have used '.' instead of ':'</p>
  
  <p>This is the error message that I am getting.</p>
  
  <p>I have also tried</p>
  
  <pre><code>sceneGroup:insert(HomeGroup) --- this is without the () at the end, at it still fails to work.
  </code></pre>
  
  <p>Please let me know if you have any ideas or know how to do this.</p>