Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:2/2
K:D
['B2 cA BAFA', 'd2 de'  
X:1
L:1/8
M:2/2
K:D
 dc | B2 cA BAFA | BdcA d2 cd | B2 cA BAFA | afef d2 :: de | f2 fe fddb | afef d2 de | fgfe fddb | 
 afef d2 :|  