Set file name according to class name