Updated the metaprogramming example

I updated my own code and thought this might be a good way to find out if I did it right