 everyone in this video, I'm going to show you how to do question nine from the compound data to workshop. So in this question here, it's very similar to the previous question well actually no it's not similar to the previous question but we're doing something similar we're designing a function, but in this case the parameter of two dimensional array that we're passing in is the array that we want to be changing so it's okay that it's a shallow copy because what we want to be doing is when we pass in an array we want to update the contents of that array so any changes we make to data in this case will also be making to our we know because that's a shallow copy great so let's have a look at what we are trying to do so we're writing a function called make absolute that when past the two dimensional integer array makes each negative item in the array positive so it makes every item absolute so I've already got my structure here I know that there's no return value here because we're not returning anything there's no output but we are having an effect we're changing the values of data okay so let's do some planning here so we need to loop through each main array and then loop through each sub array and then for each item make it its absolute value absolute value so this question is actually a little bit easier than question 8 I think if you have a good understanding of how shallow and deep copy works and if you understand that passing in an array or a two-dimensional array as a parameter into a function will create a shallow copy and this is quite an easy question because it's told us as well we can use the ABS method here which is an inbuilt maths method inside processing that will input a value and output the absolute value of that number so we don't have to do that ourselves so we have a plan here let's go and implement it so we need how outer loop which we've seen many times and then here I want my inner loop for each sub array and again we'll make this scalable for two dimensional arrays of any dimensions and then for each item we want to make it absolute value so array I K is equal to the absolute value of itself I'm used to writing array it's data too many brackets there we go and that's all we need to do for this question this one's quite straightforward so if I run this I ran this already before I implement this method the array should become this because that's the absolute value of these numbers when I ran it it didn't do that because I haven't implemented the method yet so now these should all be positive numbers awesome and that works well there easy so that's how you do that question maybe you want to add some more tests that's fine it's up to you