what was barack obama before he became the president?