A longitudinal study of spatial ability