So far I have managed that when a button is clicked it will print all values within the array. I need it to be smarter and only print the value of the element clicked.