Working version. Added something in UI. To test the sending and receiving part