please explain how we went from the shown first step to the last step