functions and closure ans