change code to use Vec3.sum()