Putting code in dict