hw3: message send and receive