reworking MakeFunction so that it uses a known symbol instead of #.
simplified the MakeFunction call after finding a neat snippet of code online for
injecting code during a pattern match.