Add class attributes