Create function4