What keeps Mars in orbit around the Sun?

Pick from:
(A). friction;
(B). gravity;
(C). magnetism;
(D). solar power;
(B).