Exercise 6, return lambda with given variable