Replace each class in separate file