A longitudinal study of student understanding of chance and data