Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:4/4
K:D
['defd cAAc', 'FEFA cAAc'  
X:1
L:1/8
M:4/4
K:D
 defd cAAc | BGGB cAAc | defd cAAc | BGAF D2 D2 | defd cAAc | BGGB cAAg | fded cAAc | BGAF DBAG |: 
 FEFA cAAc | BGGB cBAG | FEFA cAAc | BGAF D2 D2 :|  