A sequence diagram along with the theory could have helped for a better visualisation and understanding.
Thanks!