Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/4
M:4/4
K:D
['A A/A/', 'G G/G/ G', 'D F'  
X:1
L:1/4
M:4/4
K:D
 |: A A/A/ A A/A/ | A A/A/ B A | G G/G/ G G/G/ | G G A G | F F/F/ F F/F/ | F F G F | E C A, C | 
 D4 :| D F D F | D F A A | C E C E | C E A A | D F D F | D F A A | G E C E | D4 :|  