version 3

takes input from sys argv