Continuing Connection.java implementation. Added sendObject().