first version of script
now with print statements