Writing characters who can cope with adversity