Replace class.