Create a musical piece that includes the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
M:4/4
K:D
['d2 (AG) FGAF', 'd2 (fd)', 'd2 (fd)'  
X:1
L:1/8
M:4/4
K:D
 f | d2 (AG) FGAF | Ee-ed cABc | d2 (AG) FGAF | Dd-de fdd :| f | d2 (fd) (f/g/a)(fd) | 
 d2 (fd) ce-ef | d2 (fd) (f/g/a)(fd) ABde fd-d || f | d2 (fd) (f/g/a)(fd) | d2 (fd) ce-ef | 
 dAFA GBAG | FAde fd-d |]  