A good melody only need the bass actually. 3rd and 7th are usually implied by the overall song harmonic structure. There are many songs where I can just sing while playing the bass only and you still can hear the chords even they are not actually played. However, melodies that use mostly basic chord tones may sound better with some chord extensions and alterations when needed