Continual Learning for Foundation Models