Develop musical pieces that conform to the specified format and include the suggested musical theme.
X:1
L:1/8
M:4/4
K:D
['AB cdeg faec (3.A.A.A AB', 'eg fdfa (3.g.b.g ed cdef gbae faec'  
X:1
L:1/8
M:4/4
K:D
 c2 AB cd(3.e.f.e | d2 gd BGGd | (3.c.c.B AB cdeg | faec (3.A.A.A AB |{d} cBAB cdec | d2 gd BGBd | 
 (3.c.e.c AB cdeg | faec (3.A.A.A AB || cdef{agf} g2 eg | fdfa (3.g.b.g ed | cdef gbae | 
 faec (3.A.A.A AB |{d} cdef gbag | fd{e}dc defg | (3.a.g.f{a} ge faec | dgec A4 ||  