Apparently the hardest part of writing detective fiction is contriving a way for a detective to be present at a murder scene. Which is why so much detective fiction has implausible coincidences to frame the story: detectives who just happen to be invited to the country manor when a murder happens, detectives that happen to have a relative in trouble, detectives who just happen to be visiting the village fair as someone is shot, and so on.