Added 1st version of the script