rewritten part1
server.js