Newbie here- can somebody help me with explaining the code here and the shematics