Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
Q:1/2=80
M:4/4
K:D
['F2 A2', 'cecA d2'  
X:1
L:1/8
Q:1/2=80
M:4/4
K:D
|: A2 |"_play dotted throughout" d2 f>e d>cd>B | A>BA>G F2 A2 | d2 e>f g>fe>d | c2 a2 agfe | 
 d2 fe dcdB | ABAG F2 A2 | B2 gf edec | d2 d2 d2 :: fg | a2 ag fgfe | dedc B2 B2 | gagf efed | 
 cdcB A2 Bc | d2 (3ddd cecA | d2 d2 cecA | d2 f2 edec | d2 dc d2 :|  