The Book of Job attempts to answer the problem of how a God who is omniscient, omnipotent, and good can allow evil to happen to a righteous person, Job. Maimonides' solution is that Job attained moral perfection but lacked intellectual perfection. Gersonides challenges this: Job may have achieved intellectual perfection in the natural sciences, but he lacked knowledge of astronomy and astrology. This deficiency led him to not fully understand the random effects of the stars on human life, an ethical mistake. Job misses an important part of ethics: cultivating the proper virtues that are necessary for preserving one's physical self against the decrees of the stars.