Added vector member and update function to Entity class