adds elements class