separation of class from main plugin's file