It's also very common for melodies to follow a "question and answer" format. The first half ends upward, as if it was asking a question. The second half ends downwards, like it was answering that question. Of course, you want your answer to be related to the question.