Set-theoretic operations on classes