added methods for retrieving the data as vectors.