changed add function

From:Collection<Particle> theParticles
to: Collection<? extends Particle> theParticles