Horse breeding in theory and practice