Added printwriter and buffered reader