Finalize some classes