Craft a musical work in accordance with the given alphabetical guide of the desired layout and the presented motif.
X:1
L:1/8
M:4/4
K:E
['gefd cdec', 'cABG cABG', 'efga bgeg']  
X:1
L:1/8
M:4/4
K:E
 a2 | gefd cdec | BGEG B2 Bd | gefd cdec | AFDF A2 Ad :: cABG cABG | BGEG B2 Bd | cABG cABG | 
 AFDF A2 Ad :: efga bgeg | bgeg b2 ag | efga bgeg | afdf a2 gf :|  