Added implementation for createParticles() method