Defined Func function

Defined the rosen function which returns the function