overriding socket's accept method to output a MySocket object