Added basic server code from tutorial