Mosfets are voltage controlled switches. They have three pins (from left to right): GDS (God Dammit, Satvik!)=> gate drain source. N-channel and P-Channel fets are different. P go to the positive terminal of a power supply, while N are placed on the ground logic level.