text: function solve(area, vol, input) {
      const shapes = JSON.parse(input);
      const result = [];
  
      for (const shape of shapes) {
          const shapeArea = area.apply(shape);
          const shapeVol = vol.apply(shape);
  
          result.push({
              area: shapeArea,
              volume: shapeVol
          });
      }
  
      return result;
  }
  
  
  function area() {
      return Math.abs(this.x * this.y);
  };
  
  function vol() {
      return Math.abs(this.x * this.y * this.z);
  };
  
  
  console.log(solve(area, vol, `[
      {"x":"1","y":"2","z":"10"},
      {"x":"7","y":"7","z":"10"},
      {"x":"5","y":"2","z":"10"}]`));
  
  
  console.log(solve(area, vol, `[
      {"x":"10","y":"-22","z":"10"},
      {"x":"47","y":"7","z":"-5"},
      {"x":"55","y":"8","z":"0"},
      {"x":"100","y":"100","z":"100"},
      {"x":"55","y":"80","z":"250"}]`));