Create function.pl