Changed to PrintWriter and BufferedReader