append a new class after previous class