some changes in writing to file - created a method writeToPersonalOnt