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/4
K:G
['A>AAA d3']  
X:1
L:1/8
M:2/4
K:G
 D | G>FGA | GFED | G3/2FG/B | A2 z D | G>FEA | G2 F2 | G2 z B | B>BBB | c2 cB | A>AAA | d3 B | 
 B2 B/B/B | c3 B | A>AAA | d3 G | G>GGF | EcBA | B2 A2 | G3 B | B>BBB | c2 cB | A>AAA | d3 B | 
 B2 B/B/B | c3 B | A>AAA | d3 G | G>GGF | EcBA | B2 A2 | G3 |]  