Obama's first-term lessons