Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/4
M:4/4
K:G
['B A']  
X:1
L:1/4
M:4/4
K:G
 D | G G A d/c/ | B A G B | A F/G/A/G/F/E/ | D2 z D | G G A A/d/ | d3 d/c/ | B/A/G/A/ B A | G2 z |]  