added a writeLineToFile() method