Made a method to return all messages