Modulized the code …in class .     it compiles…. run time bug through…