Trial for working out ForEach, there is an issue with the variable not responding to its dependency correctly.