Construct a musical composition using the provided motif and maintain the designated form.
X:1
L:1/4
M:4/4
K:G
['D D']  
X:1
L:1/4
M:4/4
K:G
 D | D D E G | G2 G E | D D/D/ E G | A2 z | G | A A B/ d d/ | A2 B A | G G D E | D3 ||  