added receiveReply method we worked on in class