Script 2

Added functionality to script 2