commited 3

PrintWriter method added