Implemented the horse listing function.