The development of resilience - a model