Add class attribute