Add class extensions.