Nice, TTK. That is some pretty music. Psychedelic folk rock mixed with a dash of bossa nova, mighty tasty. I should get back to that period again, its been a while.
And if you want to learn how to write melodies like that, rewrite these ones. Take note of the scales and chord-sequences used.