convert class to define for wordpress since I want to instantiate it
multiple times.