Add another lab 5 figure (4) - improve reusability

Modified from the previous figures by incorporating foreach statements,