Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
M:2/2
K:D
['A3 B', 'a3 f'  
X:1
L:1/8
M:2/2
K:D
 A3 B defa | agfd efdB | A3 B defe | dBAF EF D2 :| a3 f defa | a2 fd efdf | a3 f defe | 
 dBAF EF D2 | a3 f defa | a2 fd efdB | A3 B defe | dBAF EF D2 ||  