Note: I am not using "use strict" option here because it gives compliation error stating variable not defined.