Virtue is simply happiness and happiness is a by-product of function. You are happy when you are functioning.