i just reached the final part of my homework and i\'m trying to figure out a way to achieve this in an efficient way. To be as clear as possible, here is an example:
<