what did obama do for a living before he became president?