Patch addclass