Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:2/4
K:D
['A2 Ac BGGB', 'A2 Ac BGGB AFGE D2'  
X:1
L:1/8
M:2/4
K:D
 D | A2 Ac | BGGB | AGFE | D2 D2 | A2 Ac | BGGB | AFGE | D2 D2 :| d2 dB | e2 AA | e2 eg | f2 dd | 
 fdcB | A2 DF | A2 Ac | BGGB | AFGE | D2 D2 | A2 Ac | BGGB | AFGE | D2 D2 :|  