Create function.txt

some common used function