Figure 4: Logical sequence of code execution in server and client