Jim bought his wife a Christmas gift. He didn’t tell her beforeh

Jim bought his wife a Christmas gift. He didn’t tell her beforehand. (sentence with a modifying phrase)
【正确答案】:Not telling his wife beforehand, Jim bought her a Christmas gift.