Former president Barack Obama spoke in a positive tone about the state of the world. 