code: private function buildPackages($number, $weight, $measurement = 'LBS')
  	{
  		$packages = array();
  		if($number > 1)
  		{
  			$individual_weight = $weight / $number;
  			for($i = 0; $i < $number; $i++)
  			{
  				$packages[] = '<Package>
  					<PackagingType>
  						<Code>02</Code>
  					</PackagingType>
  					<PackageWeight>
  						<UnitOfMeasurement>
  							<Code>' . $measurement . '</Code>
  						</UnitOfMeasurement>
  						<Weight>' . $individual_weight . '</Weight>
  					</PackageWeight>
  				</Package>';
  			}
  		}
  		else
  		{
  			$packages[] = '<Package>
  				<PackagingType>
  					<Code>02</Code>
  				</PackagingType>
  				<PackageWeight>
  					<UnitOfMeasurement>
  						<Code>' . $measurement . '</Code>
  					</UnitOfMeasurement>
  					<Weight>' . $weight . '</Weight>
  				</PackageWeight>
  			</Package>';
  		}
  
  		return implode('', $packages);
  	}
docs: Build an XML block for the packages
  to be included in the shipping rate
  
  @param number integer
  @param weight float
  @param measurement string
  
  @return string