first push with a simple algorithm that try to imitate the spritz behavior
merged with master