Thomas Aquinas discusses the four cardinal virtues (prudence, justice, fortitude and temperance) according to the three criteria-formation, subordination and function-and indicates the sequence of the four cardinal virtues. The virtue of prudence is being able to do what's the best to the purpose of life, be oriented toward God's beauty and good in the journey of life and then achieve the ultimate goal. The virtue of justice consists of the justice in distribution and the justice in exchange. The virtue of justice in distribution is to distribute public goods proportionately, while the virtue of justice in exchange is dealing with the exchange between two individuals. The difference between the two kinds of justice is due to their difference in nature. The virtue of fortitude refers to magnanimity, magnificence, patience and perseverance. In one's mind, he or she needs the power of fortitude to strengthen oneself as one is confronted with something beyond his ability and suffering from sins and pains. The virtue of temperance is to moderate one's desire and happiness as well as abstain from greed, which makes us abandon God's laws and the fruit of charity. Aquinas lists nine subordinate virtues under justice: religion, piety, gratitude, vengeance, veneration, honesty or truthfulness, friendship or friendliness, prodigality, expedient justice. He also stresses religion itself and the act of religion. The extraordinariness of the virtue of religion is to get closer to God for the purpose of being oriented toward Him. All the external acts that are contributed to the worship of God are meant to glorify God and bring substantial interests to the contributor. Bad habits are the sins of abstaining from God. The vices opposed to prudence, including temerity, thoughtlessness and inconstancy, would make one abstain from the divine good. Superstition is the major one of those bad habits opposed to the virtue of justice, such as, idolatry, divination, folk magic and taboos. Besides, the temptation of God, perjury, sacrilege, and simony are bad habits which are ostensibly religious but substantially blasphemous. Finally, bad habits like presumption, vanity, gluttony, drunkenness, lust and incontinence, trap man in the material world and prevent one from returning to God.