Creating new class to handle particle generation