Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:4/4
K:A
['A<A G>F E2 A>B', 'c A>Bc>d e>c e<a f<a g>f e>c'  
X:1
L:1/8
M:4/4
K:A
|: A<A G>F E2 A>B | c>Ad>B e>c e<a | A<A G>F E2 A>B | c<f e>c B3 c :: A>Bc>d e>c e<a | 
 f<a g>f e>c B>c | A<A G>F E2 A>B |1 c<f e>c B3 c :|2 c>e B>c A3 z |]  