Craft tunes following the prescribed musical structure and incorporating the given motif.
X:1
L:1/8
Q:1/8=140
M:4/4
K:D
['(3ABc dfed BAFA dfed B2 de fAAf', 'd2 d2'  
X:1
L:1/8
Q:1/8=140
M:4/4
K:D
 (3ABc | dfed BAFA | dfed B2 de | fAAf edBA | Beef e2 (3ABc | dfed BAFA | dfed B2 de | fAAf edBA | 
 d2 d2 d2 :| FG | A2 A2 f2 fe | dedB A2 A2 | G2 GA B2 ed | e2 e2 e2 Bc | dfed BAFA | dfed B2 de | 
 fAAf edBA |1 d2 d2 d2 :|2"^last time" d2 d2 d4- | d8 |]  