a class for changing one class into another