Adding the receiving part of the code