add class attributes