example 2.6

new class Attractor