Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
Q:3/8=80
M:6/8
K:D
['d2 f a2 f gbg efg afd', 'd2 d'  
X:1
L:1/8
Q:3/8=80
M:6/8
K:D
 (3A/B/c/ | d2 f a2 f | gbg efg | afd Bcd | efd{d} cBA | d2 f a2 f | gbg efg | afd ABc | d2 d d2 :| 
 d | c2 d ecA | f2 g afd | Bgf efd | ced{d} cBA | B2 g c2 a | d2 b a2 d' | afd ABc | d2 d d2 :|  