how can you make windows the main OS on a macbok code example
Example: download windows on mac
The process of implementing windows into a mac is too complex to fit in one Grepper answer.
So I'll just give you a link explaining it: https://support.apple.com/en-au/HT201468