Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:Bmin
['d2 d>E F2', 'B2 B>^A B>AB>c d2 c>d'  
X:1
L:1/8
M:4/4
K:Bmin
|: B>c | d2 d>E F2 F>^E | F2 F>E F<AA>c | d2 d>E F2 (3ABc | d>cB<^A B2 :| B>^A | B>AB>c d2 c>d | 
 e>c (3ABc e>cB>^A | B>A (3ABc (3ded c>d | e>cB<c B2 B>^A | B>AB>c d2 c>d | e>cA>c e2 (3cde | 
 f>Ae>A d2 (3cBA | d>cB<^A B2 ||  