The Miniature Schnauzer is a breed of small dog of the Schnauzer type that originated in Germany in the mid-to-late 19th century. Miniature Schnauzers may have been developed from the smallest specimens of the Standard Schnauzer, or crosses between the Standard and one or more smaller breeds such as the Affenpinscher, Miniature Pinscher, and Poodles, as farmers bred a small dog that was an efficient ratting dog. Based on Stanley Coren's book The Intelligence of Dogs (2006) ranking methodology, the Miniature ranked 12th out of 140 breeds within 79 ranks on the ability to learn and obey new commands i.e. working and obedience intelligence, being grouped among 'excellent working dogs'. Additionally, experts ranked the Miniature as 5th among top 15 breeds at watchdog barking ability.