How To Get Last Element From Vector To 3d