added taking arguments from the command line