Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:4/4
K:D
['ABdB AFED', 'ABdf a2 fa'  
X:1
L:1/8
M:4/4
K:D
|: ABdB AFED | D2 ED EFDF | ABdc d2 cd | Beed dcBc | ABdB AFED | G2 (3AGF GA Bcde | fddc dBAF | 
 EDEF D3 E :: ABdf a2 fa | gbef g2 fg | fddc dBAd | Bcdf e2 dB | ABdf a2 fa | gb ef g2 fg | 
 fddc dBAF | EDEF D3 E :|  