Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
Q:1/8=170
M:12/8
K:D
['A2 A', 'a2 a f2 d B2'  
X:1
L:1/8
Q:1/8=170
M:12/8
K:D
 A2 A A2 A ABA GFE | DFA B2 A B2 A F3 | ded a2 a f2 d B2 d | A2 A BAB d6 :| d3 a2 a f2 d B2 A | 
 BdA BdA B2 A F3 | ded a2 a f2 d B2 d | A2 A BAB d6 :|  