Seven virtues
The "Catechism of the Catholic Church" defines virtue as "a habitual and firm disposition to do the good." Traditionally, the seven Christian virtues or heavenly virtues combine the four classical cardinal virtues of prudence, justice, temperance and courage (or fortitude) with the three theological virtues of faith, hope and charity. These were adopted by the Church Fathers as the seven virtues.
Seven deadly sins
With Christianity, historic Christian denominations such as the Catholic Church and Protestant Churches, including the Lutheran Church, recognize seven virtues, which correspond inversely to each of the seven deadly sins. 
Confession is the act of admitting the commission of a sin to a priest, who in turn will forgive the person in the name (in the person) of Christ, give a penance to (partially) make up for the offense, and advise the person on what he or she should do afterwards.