Receive method

Add receive method to class Server