Created the "getAll" function