The best answer is window. The relationship between the first pair of words, needle and compass, is that of part to whole—the first word is a part or piece of the other. Therefore, the second pair of words must also have a part-to-whole relationship. Glass is part of a window.