Implemented findAll function