All the paper code converted to actual code, atleast syntactically correct
Ading all paper code converted to actual code , atleast syntax is correct. Still need to add false setter checks in main