Rebuild classes