How do I write my custom attractor equation ?