old_contents: (function (global) {
  	var mapArray;
  
  	if (!global.UAM) {
  		global.UAM = {};
  	}
  
  	mapArray = function (array, callback, ctx) {
  
  	};
  
  	global.UAM.mapArray = mapArray;
  
  }(window));
  
  /*
  
  Przykład użycia:
  
  var arr = [1, 2, 3, 4, 5, 6];
  
  var newArray = mapArray(arr, function (arrElement, index, array) {
  	return arrElement + 2;
  });
  
  newArray; // [3, 4, 5, 6, 7, 8]
  
  var values = {
  	multiplyBy: 10;
  };
  
  var newArray2 = mapArray(arr, function (arrElement, index, array) {
  	return arrElement * this.mutiplyBy;
  }, values);
  
  newArray2; [10, 20, 30, 40, 50, 60]
  */
  
new_contents: (function (global) {
  	var mapArray;
  
  	if (!global.UAM) {
  		global.UAM = {};
  	}
  
  	mapArray = function (array, callback, ctx) {
          if (ctx === undefined) {
              self = this;
          } else {
              self = ctx;
          }
          return array.map(callback.bind(self));
          
  	};
  
  	global.UAM.mapArray = mapArray;
  
  }(window));
  
  /*
  
  Przykład użycia:
  
  var arr = [1, 2, 3, 4, 5, 6];
  
  var newArray = mapArray(arr, function (arrElement, index, array) {
  	return arrElement + 2;
  });
  
  newArray; // [3, 4, 5, 6, 7, 8]
  
  var values = {
  	multiplyBy: 10;
  };
  
  var newArray2 = mapArray(arr, function (arrElement, index, array) {
  	return arrElement * this.mutiplyBy;
  }, values);
  
  newArray2; [10, 20, 30, 40, 50, 60]
  */
  
subject: Add exercise2 form Lesson2