added an exececutre function that takes in the command line arguments