Compose musical pieces adhering to the prearranged pattern, utilizing the provided motif.
X:1
L:1/8
M:4/4
K:D
['d2 fd Adfd', '(3aaa ab afdf'  
X:1
L:1/8
M:4/4
K:D
 d2 fd Adfd | (3ddd fa gecA | d2 fd Adfd | eA (3Bcd egfe :| (3aaa ab afdf | a2 af gede | 
 (3aaa ab afdf | eA (3Bcd egfe | (3aaa ab afdf | a2 af gede | afge fdec | A2 (3Bcdegfe ||  