As opposed to the typical British detective, the hardboiled detective was generally a cynical loner with a strong sense of justice that wasn't necessarily limited to that provided by the court system. Then, in the 1930's and 1940's American writers added a grittier urban element to the detective genre - the hardboiled detective. These detectives most commonly applied their brilliance to crimes in quaint country houses outside small idyllic villages. The Sherlock Holmes stories were wildly popular in England, and after Conan Doyle, the British continued to dominate the detective genre with other detectives who depended on keen observation and deductive logic to solve crimes. Many think that Doyle patterned Holmes and Watson after Dupin and his friend. Later in the 19th century Sir Arthur Conan Doyle expanded on Poe's new concept in his Sherlock Holmes stories. He and his unnamed narrator companion solved this and two other mysteries. Auguste Dupin, was a brilliant detective who relied on superior deductive powers to solve the crime. Edgar Allan Poe's The Murders in the Rue Morgue, published in 1841, was the first. Elements of mystery have always been represented in literature, but the detective story didn't arrive on the scene until the mid 1800's.