Converted particle into a class