Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:4/4
K:D
['D2 FA BAFA defd', 'fe d3 B A2 FA BA (3Bcd'  
X:1
L:1/8
M:4/4
K:D
 D2 FA BAFA | defd Be e2 | d3 B A2 FA | BGEF GEFE | D2 FA BAFA | defd e2 fg | agfg e2 dB |1 
 ABde fd d2 :|2 ABde fddc || d2 fd Adfa | bgef g2 fe | d3 B A2 FA | BA (3Bcd egfe | d2 fd Adfa | 
 bgef g2 ag | f2 df eBdB |1 ABde fddc :|2 ABde fd d2 ||  