The effect of attending class is to please the teacher