The effect of attending class is listening to a professor