Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
Q:1/8=300
M:4/4
K:D
['(3faf de', 'BcdA BcdA'  
X:1
L:1/8
Q:1/8=300
M:4/4
K:D
 ag | (3faf de (3faf de | fgaf bagf | (3efe cA eAcA | (3Bcd ef geag | (3faf de (3faf de | 
 fgaf bagf | (3efe ce ABcd | e2 d2 d2 :| z A | BcdA BcdA | BcdA Bc d2 | cdef gf (3efe | 
 defd A2 AA | BcdA BcdA | BcdA Bc d2 | cdef gfec | e2 d2 d2 :|  