Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
M:2/2
K:D
['AdFd e>def', 'afdf eEE f/g/'  
X:1
L:1/8
M:2/2
K:D
 d | AdFd e>def | e<ef>e dBBd | AdFd e>def | d<B A>G FD D :| f/g/ | afda fa d/e/f/g/ | 
 afdf eEE f/g/ | afdf edef | d>B A>G FDD (f/g/) | afda fa (d/e/f/g/) | afdf eEE f/g/ | 
 a>fg>e f>de>f | d<B A>G FD D ||  