Create proper plugin main class