changed write to print
added read/print stmt. Removed strcpy and strcmp