Initial working version that creates a server