Added Method Checking,Modularized code,Testing is going on