Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:4/4
K:D
['(3fgffe dedB', 'ad d2 AdFd'  
X:1
L:1/8
M:4/4
K:D
|: ag | f3 e dedB | B2 dB BAFA | (3fgffe dedB | ABde feag | (3fgffe dedB | B2 DB BAFA | 
 (3fgffe dedB |1 BABc d2 :|2 BABc d2 fg |: ad d2 AdFd | Ad d2 fefg | ad d2 AdFd | fede fe e2 | 
 ad d2 AdFd | Ad d2 g2 ag | (3fgffe dedB |1 BABc d2 fg :|2 BABc d2 ag ||  