Added strClass and allClass functions