School assignment, to write a simple http server