Add class with prerequiste