Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:C
['BE E2', 'B2 Bd e2 ef'  
X:1
L:1/8
M:4/4
K:C
[M:4/4][K:Emin] a e ae f ae ue (C E2 .eaed e .Teduce acf!p! ue) bed e bd f e f Beaac aeae aef ue"^The Jolly Pigeons"[Q:1/8=180] .EFGA BE E2 | 
 BEdE BE E2 | EFGA BE E2 | ABAG FD D2 :| B2 Bd e2 ef | afdf e2 d2 | B2 Bd e2 ef | gefd B2 A2 | 
 B2 Bd e2 ef | afdf e2 d2 | B2 B^c d2 dB | ABAG FD D2 |]  