Not quite - I meant should it be  echo $element->containerClass . ' ' . $element->span; ?