create file2 and divide function