Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
M:6/8
K:D
['dBB dBB', 'afd afd'  
X:1
L:1/8
M:6/8
K:D
 vdBB dBB | dBB fed | cAA cAA | cAA"^4" edc | dBB dBB | dBB fed | cde fge | dBB B2 z :: vafd afd | 
 afd Adf | gec gec | gAc efg | afd afd | afd Adf | eba gfe | fdd d2 z :|  