When we have a non-metal and a non-metal we have a molecular compound.
Non-Metal + Non-Metal = Molecular (sometimes called Covalent)