Inplementation of callback in 'shared_variable' class.
Line class (derived from Particle class) added.