mv maxfunction.txt to document