The effect of attending class is to learn