The effect of attending class is learning