homework: inactive_record part 2