Effective pedagogy for small undergraduate classes