Continual learning with neural networks