here, the numpy computation is done in the code that accepts the traj object (i.e with `x = traj.xyz`), whereas in the other ones, it's done in a separate method.