iceparticle basic c++ code