3.10 replacing let with lambda and examining the environment