After the first four notes, one goes up, one goes down. The coda is a bit similar, but really, it's basically how logically that melody would go, if you follow basic rules of diatonic harmony.