Alan Dershowitz, in his book The Vanishing Jew, describes that as part of a course he taught in Harvard Law school, one of his co-professors decided to rate G-d. They decided to sit in judgment of Hashem, to determine how good a job He did when He created this world. Their conclusion? They found much good, much wisdom and forethought, but they also found much suffering and pain, needless pain. So on balance they gave G-d a B-.
Forgetting about the absurdity of a flesh and blood man judging G-d, the question is valid. If in fact HASHEM is all good, and if in fact HASHEM created this world to give to man, it surely would seem that HASHEM could have done a better job at creating man and this world.
This Shmuz brings us to understand some of the most basic issues that a Ben Torah must fully comprehend in terms of why HASHEM created this world and what HASHEM has in mind for man.