The challenge I encountered when implement this lab is for the server 
to receive an integer as an integer, not as a sequence of bytes. 
The solution is to use the DataInputStream instead of normal BufferedReader or InputStream.