A former Obama speechwriter on how to make America optimistic again