Moved my_class include higher so variables can be used in templates