Showing how it works with an example expanding the answer above from user akivajgordon, it helped my understanding, hope it helps someone else: