Construct a music composition that includes the given motif, while conforming to the necessary musical form.
X:1
L:1/8
M:2/4
K:D
['defg (3(agf) e2', 'd2 (3(ABc)'  
X:1
L:1/8
M:2/4
K:D
 defg | (3(agf) e2 | fddd | (3(edc) A2 | defg | (3(agf) e2 | fd ec | d2 d2 :: d2 (3(ABc) | 
 d2 (3(ABc) | defe | dcBA | d2 (3(ABc) | d2 (3(ABc) | defe | d2 d2 :|  