add delete file1 method
optimize: change main method to static method