Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:4/4
K:D
['dAFA G2 GF GEB,D C2 AG FDDC', 'GAEG FAdc dfed cdBc A3 c dAFA'  
X:1
L:1/8
M:4/4
K:D
 dAFA G2 GF | GEB,D C2 AG | FDDC B,BBA | (3Bcd ed cdec | dAFA GFGA | GEB,D CEAG | FDDC B,BAG |1 
 FGEF D4 :|2 FGEF D2 FA |: GEE^D E3 F | GEEF GAEG | FAdc dfed | cdBc A3 c | dAFA G2 GF | 
 GEB,D CEAG | FDDC B,BAG |1 FGEF D2 FA :|2 FGEF D4 ||  