New Resign method created and test2 added