Namespace issues when calling a plugin variable Making a plugin.

I can't seem to get this {% set leads = craft.lead_infopack.getPacks() %} to fire from within a template. 

Plugin name: lead

Here's a look inside my variables class.

Lead_InfopackVariable.php:

class Lead_InfopackVariable
{ 
    public function getPacks()
    {
        return craft()-&gt;lead_infopack-&gt;leads();
    }


The leads function calls a service that outputs all entries within my 'infopack' table.

If I write it like this it works {% set leads = craft.lead.getPacks() %}

LeadVariable.php:

class LeadVariable
{ 
    public function getPacks()
    {
        return craft()-&gt;lead_infopack-&gt;leads();
    }
}
I think you can only have one variable class. So the solution you posted is the only way that works.