var http = require("http");

var server = http.createServer(function(request, response) {
  response.writeHead(200, {"Content-Type": "text/html"});
  response.write("<!DOCTYPE \"html\">");
  response.write("<html>");
  response.write("<head>");
  response.write("<title>Hello World Page</title>");
  response.write("</head>");
  response.write("<body>");
  response.write("Hello World! 5000");
  response.write("</body>");
  response.write("</html>");
  response.end();
});
 
server.listen(8080);
console.log("Server is listening");
@@ -1,64 +1,1137 @@
 var 
-http = require(%22http%22);%0A%0Avar server = http.createServer(
+express = require('express'),%0A    app = express(),%0A    request_lib = require('request'),%0A    cheerio = require('cheerio');%0Aapp.set('port', (process.env.PORT %7C%7C 5000));%0A// var server = http.createServer(function(request, response) %7B%0A//   response.writeHead(200, %7B%22Content-Type%22: %22text/html%22%7D);%0A//   response.write(%22%3C!DOCTYPE %5C%22html%5C%22%3E%22);%0A//   response.write(%22%3Chtml%3E%22);%0A//   response.write(%22%3Chead%3E%22);%0A//   response.write(%22%3Ctitle%3EHello World Page%3C/title%3E%22);%0A//   response.write(%22%3C/head%3E%22);%0A//   response.write(%22%3Cbody%3E%22);%0A//   response.write(%22Hello World! 5000%22);%0A//   response.write(%22%3C/body%3E%22);%0A//   response.write(%22%3C/html%3E%22);%0A//   response.end();%0A// %7D);%0A// var sendComments = function(response) %7B%0A//   response.writeHead(200, %7B%22Content-Type%22: %22text/html%22%7D);%0A//   response.write(%22%3C!DOCTYPE %5C%22html%5C%22%3E%22);%0A//   response.write(%22%3Chtml%3E%22);%0A//   response.write(%22%3Chead%3E%22);%0A//   response.write(%22%3Ctitle%3EHello World Page%3C/title%3E%22);%0A//   response.write(%22%3C/head%3E%22);%0A//   response.write(%22%3Cbody%3E%22);%0A//   response.write(%22Hello World! 5000%22);%0A//   response.write(%22%3C/body%3E%22);%0A//   response.write(%22%3C/html%3E%22);%0A//   response.end();%0A// %7D);%0A%0Aapp.get('/', 
 func
@@ -1544,62 +1544,121 @@
 %7D);%0A
- %0Aserver.listen(8080);%0Aconsole.log(%22Server is listening%22
+%0Aapp.listen(app.get('port'), function() %7B%0A    console.log(%22Node app is running at localhost:%22 + app.get('port'));%0A%7D
 );

update 3