Mere instruction in morality is not sufficient to nurture the virtues. It might even backfire, especially when the presentation is heavily exhortative and the pupil's will is coerced. Instead a compelling vision of the goodness of goodness itself needs to be presented in a way that is attractive and stirs the imagination.
Vigen Guroian, Tending the Heart of Virtue: How Classic Stories Awaken a Child's Moral Imagination
virtue