Few problems solved
Working version with 8 trajectories