formatting to text document for assignment2 & time of day greeting