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:2/2
K:D
['gedc BcdB'  
X:1
L:1/8
M:2/2
K:D
"A" e2 cA cdef |"G" gedc BcdB |"A" e2 cA cdef |"G" gedB"A"{c} BA A2 |"A" e2 cA cdef | 
"G" gedc BcdB |"A" cAcd edef |"G" gedB"A"{c} BA A2 |]"A" cAce"^(D)" a2 ef |"G" gedc BcdB | 
"A" eA A2 a2 ef |"G" gedB"A"{c} BA A2 |"A" cAce"^(D)" a2 ef |"G" gedc BcdB |"A" A2 (3(Bcd) eaaf | 
"G" gedB"^(A)"{c} BA A2 |]  