chap_2: add gravity example with 1 attractor