finshing chapter 4
starting chapter 5
adding the macro creator that uses an implicit scope created by a function that takes a variable x