Accept method

Add accept method to class Server