Where to write reusable code to access in all the models

This works for me thanks very much!