Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:3/4
K:G
['d2 d^cde d3 DGA B2 B^ABc B4', 'B3 ^A B2'  
X:1
L:1/8
M:3/4
K:G
|: DGB | d2 d^cde | d3 DGA | B2 B^ABc | B4 G2 | FAdFAc | FAdFAc | B3 ABc | dedcBc | d2 d^cde | 
 d3 DGA | B2 B^ABc | B4 G2 | FAcFAd | FAcFAd | G2 FGBA |1 G3 :|2 G4 D2 |: c3 B c2 | E3 ^D E2 | 
 B3 ^A B2 | G3 DGB | A3 ^G A2 | D2 F2 A2 | B3 ^A B2 | G^G-GA-AB | c3 B c2 | E3 ^D E2 | B3 ^A B2 | 
 G3 DGB | A3 ^G A2 | D2 F2 A2 |1 G2 FGBA | GDFGAB :|2 G2 GFGA | G3 ||  