Add velocity attribute to Entity class