[homework]inactive_record: refractor