How to create and use Ad Hoc variables