added a arg count check to make sure the user specified at least 2
arguments.