Updated Homework 3 File Logging