adding createCSSClass() function