Creating a digital circuit using MOSFETs