Class size matters but teaching skill and course design matter more, study finds