Create a composition based on the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
M:4/4
K:D
['d2 AG FDFA', 'f2 fe fg a2'  
X:1
L:1/8
M:4/4
K:D
 A2 | d2 AG FDFA | BGBd cABc | d2 AG FDFA | Bdce d2 :| f2 fe fg a2 | gfec ef g2 | f2 fe fg a2 | 
 edcB A2 Bc | d2 AG FDFA | BGBd cABc | d2 AG FDFA | Bdce d2 |]  