The following pseudocode is executed using the "Shopping Bills" dataset. At the end of execution, `A` represents the maximum number of unique items sold by a shop. Choose the correct code fragment(s) to complete the pseudocode.
```
D = {}
while(Table 1 has more rows) {
Read the first row X in Table 1
************************
**** Fill the code ****
************************
Move X to Table 2
}
A = 0
foreach a in keys(D) {
if(A < length(keys(D[a]))) {
A = length(keys(D[a]))
}
}
```