added skeleton for receive()