added Particle class
fixes warnings