Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:4/4
K:G
['EA A2', 'BAAG ABcd eAAe gedc BGGB ABcd eaaf', 'A2 egdB A2 eg |3 MdB GA'  
X:1
L:1/8
M:4/4
K:G
|: EA A2 ABcA | EAFA GEED | EA A2 ABcd | egdB BAAG :: ABcd eAAe | gedc BGGB | ABcd eaaf | 
 gedc BA A2 :: egdB A2 eg | |3 MdB GA (3Bcd | ||4 MeBdB A a2 f | gedB BA A2 :|  