finalizing class