Top class finalization