updated the class file to use static variables and secret is no longer passed it needs to be updated inside the class as a property