working example for accessing the data