Add config in a class