Adjusted code to run the all methods