added server code  plus shortest Leibniz solution
added some comments