Initial working contribution. TODO: PrintWriter -> StringTemplate