How IBM’s weak hardware business explains its future plans