Obama takes credit for the economy