How do I make dynamically named symbols?

I think you can use the variable function in this case.