Particle class used in Homework 2 -file reading