add class snippet