Transform plugin code into a Class