- added a method to read all objects