Why did a Good God create a Bad Devil?

The Bible says that it was the devil (or Satan) in the form of a serpent who temped Adam and Eve to sin and brought about their fall.  But this…