Obama elected to first term