Added reveive()-method in server and client