Why failure can be the path to success