Sometimes attending class causes learning