Effective learning may require a serendipitous curriculum rather than a strictly pre-planned one