Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
Q:1/8=360
M:2/2
K:C
['c2 Ac G2 EG e3 c dcAG', 'c2 ec Gcec', 'ecdB in d2 Bd A2 FA f3', 'd2 fd Adfd']  
X:1
L:1/8
Q:1/8=360
M:2/2
K:C
 c2 Ac G2 EG | e3 c dcAG | EGcA GECE | DCDE C2 EG :| c2 ec Gcec | (3def ec dcAG | c2 ec Gcec | 
 dfed c2 GA | c2 ec Gcec | (3def ec dcAG | cdef g3 a | gedf ecdB |] 
[K:D]"^version in D" d2 Bd A2 FA | f3 d edBA | FAdB AFDF | EDEF D2 FA :| d2 fd Adfd | 
 (3efg fd edBA | d2 fd Adfd | egfe d2 AB | d2 fd Adfd | (3efg fd edBA | defg a3 b | afeg fdec |]  