It's perfect!... Except not really... Welcome to level nine.
A level nine trainer will use IV breeding. The most patience-trying process of any videogame forces the trainer to spend possible months attempting to obtain a Pokémon with optimal IVs. This level requires an understanding of IVs, and, putting it bluntly, a ton of luck. A level nine trainer can be called the highest level among trainers.
IVs, or Individual Values, are Pokémon genetics. They're Gamefreak's way of assuring that no playthrough will ever be exactly the same. This is a fantastic feature, as it gives Pokémon a sense of infinite replay value that other games could only dream of rivaling. The problem with this is that only about one in several thousand Pokémon is perfect.
Individual Values are like a combination of Natures and EVs. They are like Natures in that Pokémon are born with them, and once determined, they can't be changed. They influence stats in a similar fashion, but these changes aren't limited to ten percent impacts. They are like EVs because of their heavier reliance on numbers. One of these numbers, like EVs, is a limit to how many total IVs a Pokémon can have. This limit is a little bit different, though. Like EVs, there are six categories for IVs (One for each stat). For EVs, there is a limit of 252 to each stat, as well as a total limit of 510. For IVs, each stat has a limit of 31, with a total limit of 186. Yes, this does mean that a Pokémon could, ideally, have 31 IVs in each stat. A Pokémon like this would have the potential for perfect stats.
The most difficult part about IVs is that, as of yet, there is no way to know the numbers. When a Pokémon is hatched, it will have its IVs all set and ready to go, but figuring them out is the most difficult part. In order to figure out a Pokémon's IVs, it must be leveled up without fighting any other Pokémon (As that would add EVs, which would adulterate the numbers). The ideal level is level fifty. The easiest way to do this is to link up with a friend and participate in a Normal Battle (This is a battle that turns all combatants into level fifty, temporarily). While in this battle, the trainer simply needs to summarize the Pokémon of interest's stats, and the ideal stats will be acquired.
After the trainer knows their Pokémon's stats at level fifty, uninfluenced by EVs, of course, they need to plug them into an IV calculator. For an accurate and in-depth calculator, check this site:
In Pokémon X and Y versions, there is a non-playing-character called The Judge. The Judge has the ability to judge the potential of a trainer's Pokémon. This "potential" is a lay man's way of referring to IVs. He can say if a Pokémon is good or bad, and he will say if the Pokémon has any or all perfect IVs, but there are still no exact numbers.
The easiest way to obtain a Pokémon with perfect IVs is to breed a Pokémon with perfect IVs. Pokémon babies are skilled at receiving inherited traits, and if the parent(s) have better IVs, then the offspring has a heavily increased chance of having better IVs. If the trainer doesn't have a Pokémon with perfect IVs, and doesn't have a friend who has or is willing to trade them one, then they have to get one themselves. The only real way to do that is to breed until luck pulls through. A method that speeds up the process would be to breed a Pokémon until it's offspring has at least one perfect IV. Then, breed that Pokémon until its offspring is born with at least two perfect IV, and so on until a Pokémon is born with all perfect IVs,. The most ideal Pokémon to have with Perfect IVs would be Ditto. Ditto is a Pokémon that can breed with any other Pokémon that can breed. A Ditto with perfect IVs could be used to create an army of perfect Pokémon.
So there it is, the final level. Easy enough, right? No? Well, then maybe there is one more chapter...