homework: inactive_record part 1